package com.zixun.repository.information;

import com.zixun.model.information.InformationComment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface InformationCommentRepository extends JpaRepository<InformationComment,Integer> {

    @Query("select c from InformationComment c where c.informationId = :id ")
    List<InformationComment> findAllByInfoId(@Param("id") Integer id);

}
